# -*- coding: utf-8 -*-

"""
@author: Mark Wu
@file: operationcsv.py
@time: 2025/3/26 22:33
"""

import pandas as pd
from common.recordlog import logs
import traceback


def read_csv(file_path, col_name):
    try:
        df = pd.read_csv(file_path, encoding="GBK")
        data = df[col_name].tolist()
        return data
    except Exception as e:
        logs.error(str(traceback.format_exc()))
